package a05demo5;

public class test77 {
    public static void main(String[] args) {
        Frog f = new Frog("小绿",1);
        System.out.println(f.getName()+","+f.getAge());
        f.drink();
        f.eat();

        Dog d = new Dog("小黄",3);
        System.out.println(d.getName()+","+d.getAge());
        d.eat();
        d.drink();

        Sheep s = new Sheep("小白",2);
        System.out.println(s.getName()+","+s.getAge());
        s.eat();
        s.drink();
    }
}
